n = eval(input())
s = 0
flag = 1
i = 1
while i <= n:
    item = flag/(2*i-1)
    s+=item
    flag= - flag
    i = i + 1
print(4*s)
